<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
  <head>
    <title>Category Path</title>
  </head>

  <body>
  	<form action="Search.do">
  		<input type="text" name="searchString" />
  		<input type="hidden" name="selectedCategory" value="${currentCategory}/" />
  		<input type="submit" name="search" />
  	</form>
  	<form action="Category.do">
	  	Categories:<br />
	    <c:forEach var="category" items="${categoryList}">
	      <a href="javascript:document.getElementById("selectedCategory").value += ${category};this.submit();">
	      	<c:out value="${category}"/>
	      </a>
	      <br />
	    </c:forEach>
	    <input type="hidden" name="selectedCategory" value="${currentCategory}/" />
	</form>
	<br />
	
	URLs:<br />
    <c:forEach var="url" items="${urlList}">
      <c:out value="${url}"/>
      <br />
    </c:forEach>

  </body>
</html>
